jQuery(document).ready(function(){
	//this function attached focus and blur events with input elements
	var addFocusAndBlur = function($input, $val){
		
		$input.focus(function(){
			if (this.value == $val) {this.value = '';}
		});
		
		$input.blur(function(){
			if (this.value == '') {this.value = $val;}
		});
	}
	addFocusAndBlur(jQuery('#title'),'Title*');
	addFocusAndBlur(jQuery('#subtitle'),'Subtitle*');
	addFocusAndBlur(jQuery('#subtitle'),'Subtitle*');
	addFocusAndBlur(jQuery('#textarea'),'Overview / introduction*');
	addFocusAndBlur(jQuery('#subscripcion'),'Newsletter subscription');
	
});